namespace AssetsSys.model.Migrations
{
    using System;
    using System.Data.Entity.Migrations;
    
    public partial class permission : DbMigration
    {
        public override void Up()
        {
            CreateIndex("dbo.Departments", "PermissionId");
            AddForeignKey("dbo.Departments", "PermissionId", "dbo.Permissions", "Id");
        }
        
        public override void Down()
        {
            DropForeignKey("dbo.Departments", "PermissionId", "dbo.Permissions");
            DropIndex("dbo.Departments", new[] { "PermissionId" });
        }
    }
}
